from gameset.phoenicia.base import *

from .finemetal import Silver, Gold
from .pearls import Pearls


class Jewelry(Property):
    singular  =_ ('Jewelry')
    plural    =_ ('Jewelry')
    happiness =_ (1.0)
    consumed  =_ (0.1)


class Jeweller(Workshop):
    name     =_ ('Jeweller')
    color    =_ (Yellow.with_value(0.4).with_saturation(0.4))
    cost     =_ (450)
    size     =_ (2)
    staff    =_ (8)
    produces =_ (Production(input = Gold(1),   output = Jewelry(10), duration = 5),
                 Production(input = Silver(5), output = Jewelry(10), duration = 5),
                 Production(input = Pearls(3), output = Jewelry(10), duration = 5))
